package com.mooc.fuxi.ui.detail;

import com.mooc.fuxi.entity.NewsDetailEntity;
import com.mooc.fuxi.mvvm.BaseModel;
import com.mooc.fuxi.network.ApiService;
import com.mooc.fuxi.network.NetRepo;

import io.reactivex.Observable;

public class NewsDetalModel extends BaseModel {

    public Observable<NewsDetailEntity>requestDetail(String newscode){
        return NetRepo.getInstance().getRetrofit().create(ApiService.class)
                .requestDetail(newscode);
    }

}
